home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 2 / Meeting Pearls Vol. II (1995)(GTI - Schatztruhe)[!].iso / Pearls / comm / Envoy / Conf / tkbase.h < prev    next >
C/C++ Source or Header  |  1994-03-15  |  2KB  |  59 lines

  1. #ifndef TKSBASE_H
  2. #define TKSBASE_H
  3.  
  4. /*****************************************************************************/
  5.  
  6. #include <exec/types.h>
  7. #include <exec/libraries.h>
  8. #include <exec/lists.h>
  9. #include <exec/semaphores.h>
  10. #include <exec/execbase.h>
  11. #include <utility/tagitem.h>
  12. #include <dos/dos.h>
  13. #include <dos/dosextens.h>
  14. #include <dos/dostags.h>
  15. #include <dos.h>
  16. #include <envoy/nipc.h>
  17.  
  18. /*****************************************************************************/
  19.  
  20. struct TKSSvc
  21. {
  22.     struct Library           TKS_Lib;
  23.     struct Library          *TKS_DOSBase;
  24.     struct Library          *TKS_NIPCBase;
  25.     struct ExecBase         *TKS_SysBase;
  26.     struct Library          *TKS_UtilityBase;
  27.     APTR                     TKS_Entity;
  28.     BPTR                     TKS_SegList;
  29.     
  30.     struct SignalSemaphore   TKS_OpenLock;
  31. };
  32.  
  33. #define ASM           __asm
  34. #define REG(x)        register __ ## x
  35.  
  36. #define TKSBase       ((struct TKSSvc *)getreg(REG_A6))
  37. #define SysBase       TKSBase->TKS_SysBase
  38. #define DOSBase       TKSBase->TKS_DOSBase
  39. #define UtilityBase   TKSBase->TKS_UtilityBase
  40. #define NIPCBase      TKSBase->TKS_NIPCBase
  41.  
  42. /*****************************************************************************/
  43.  
  44. ULONG __saveds ASM StartService(REG(a0) struct TagItem *st_list);
  45.  
  46. VOID ASM Server(REG(a0) STRPTR userName,
  47.                 REG(a1) STRPTR password,
  48.                 REG(a2) STRPTR entityName);
  49.  
  50. VOID ASM FlushLib(VOID);
  51.  
  52.  
  53. /*****************************************************************************/
  54.  
  55. kprintf(STRPTR,...);
  56. sprintf(STRPTR,...);
  57.  
  58. #endif /* TKSBASE */
  59.